import service from '@/utils/request'
// @Tags Erotable
// @Summary 创建Erotable表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.Erotable true "创建Erotable表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /erotable/createErotable [post]
export const createErotable = (data) => {
  return service({
    url: '/erotable/createErotable',
    method: 'post',
    data
  })
}

// @Tags Erotable
// @Summary 删除Erotable表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.Erotable true "删除Erotable表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /erotable/deleteErotable [delete]
export const deleteErotable = (params) => {
  return service({
    url: '/erotable/deleteErotable',
    method: 'delete',
    params
  })
}

// @Tags Erotable
// @Summary 批量删除Erotable表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除Erotable表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /erotable/deleteErotable [delete]
export const deleteErotableByIds = (params) => {
  return service({
    url: '/erotable/deleteErotableByIds',
    method: 'delete',
    params
  })
}

// @Tags Erotable
// @Summary 更新Erotable表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.Erotable true "更新Erotable表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /erotable/updateErotable [put]
export const updateErotable = (data) => {
  return service({
    url: '/erotable/updateErotable',
    method: 'put',
    data
  })
}

// @Tags Erotable
// @Summary 用id查询Erotable表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query model.Erotable true "用id查询Erotable表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /erotable/findErotable [get]
export const findErotable = (params) => {
  return service({
    url: '/erotable/findErotable',
    method: 'get',
    params
  })
}

// @Tags Erotable
// @Summary 分页获取Erotable表列表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取Erotable表列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /erotable/getErotableList [get]
export const getErotableList = (params) => {
  return service({
    url: '/erotable/getErotableList',
    method: 'get',
    params
  })
}

// @Tags Erotable
// @Summary 不需要鉴权的Erotable表接口
// @Accept application/json
// @Produce application/json
// @Param data query eplReq.ErotableSearch true "分页获取Erotable表列表"
// @Success 200 {object} response.Response{data=object,msg=string} "获取成功"
// @Router /erotable/getErotablePublic [get]
export const getErotablePublic = () => {
  return service({
    url: '/erotable/getErotablePublic',
    method: 'get',
  })
}
